﻿package mortal.game.scene3D.player.item
{
    import Message.Public.*;
    import frEngine.pools.*;
    import mortal.game.cache.*;
    import mortal.game.scene3D.display3d.text3d.dynamicText3d.*;
    import mortal.game.scene3D.player.entity.*;

    public class PassPlayer extends BasePlayer
    {
        private var _passPoint:SPassPoint;
        private var _text3D:Text3D;

        public function PassPlayer()
        {
            overPriority = Game2DOverPriority.Pass;
            return;
        }// end function

        public function get passPoint() : SPassPoint
        {
            return this._passPoint;
        }// end function

        override protected function disposeObject() : void
        {
            FrObjectPool.disposeObject(this, PassPlayer);
            return;
        }// end function

        public function updatePassPoint(param1:SPassPoint) : void
        {
            this._passPoint = param1;
            this.x2d = param1.point.x;
            this.y2d = param1.point.y;
            this.url = param1.effectName;
            setTitle(Cache.instance.passCrossCache.getPassName(param1));
            return;
        }// end function

        override public function hoverTest(param1:Number, param2:Number, param3:Number, param4:Number) : Boolean
        {
            var _loc_5:Number = 130;
            var _loc_6:Number = 150;
            _displayRec.x = this.x2d - param1 - _loc_5 / 2;
            _displayRec.y = this.y2d - param2 - 110;
            _displayRec.width = _loc_5;
            _displayRec.height = _loc_6;
            return _displayRec.contains(param3, param4);
        }// end function

        override public function dispose(param1:Boolean = true) : void
        {
            this._passPoint = null;
            super.dispose(param1);
            return;
        }// end function

    }
}
